1.下载到本地
hdfs dfs -get /user/hive/warehouse/ads.db/ads_get_finalindicatorame_and_zhidingunit_and_zhengshivalue/000000_0 /data/yzw/formal/result/YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE
hdfs dfs -get /user/hive/warehouse/ads.db/ads_distinct_zhibiao_nian_diqu/000000_0 /data/yzw/formal/result/YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE_DISTINCT
2.转格式
iconv -f UTF-8 -t GB18030 /data/yzw/formal/result/YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE -o YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE.txt
iconv -f UTF-8 -t GB18030 /data/yzw/formal/result/YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE_DISTINCT -o YEARBOOKTABLEDATA2008_FORMAL_SYNONYM_MERGE_DISTINCT.txt
3.访问kbase的一台windows服务器
在windows台式机中按win+r然后输入\\10.120.146.168\rec数据
4.将linux本地文件传到windows服务器
先在windows上创建田老师取的文件夹名
将linux本地数据下载到windows台式机上
将台式机的文件直接拖到windows服务器的目录中